package beans.factory;

import beans.BeansException;

public interface FactoryBean<T>{

    /**
     * @Author: Take-off
     * @Description:  获取对象
     * @Date: 4:02 PM 2023/2/26
     * @Param: []
     * @return: T
     **/
    T getObject() throws BeansException;

    /**
     * @Author: Take-off
     * @Description:  对象类型
     * @Date: 4:02 PM 2023/2/26
     * @Param: []
     * @return: java.lang.Class<T>
     **/
    Class<T> getObjectType();

    /**
     * @Description:  是否是单例对象
     * @Author: Take-off
     * @Date: 4:10 PM 2023/2/26
     * @Param: []
     * @return: boolean
     **/
    boolean isSingleton();

}
